import { Routes, Route, useNavigate } from "react-router";
import Home from "../pages/Home/index";
import Login from "../pages/Login/index";
export default function Router() {
  let navigate = useNavigate();
  /* 未鉴权情况 */
  navigate("/home");
  return (
    <Routes>
      <Route path="/home" element={<Home />} />
      <Route path="/login" element={<Login />} />
    </Routes>
  );
}
